package com.taozi.netty.socketio.use.classroomchat.mapper.education;

import com.taozi.netty.socketio.use.classroomchat.entity.entity.education.ClassroomChat;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 课堂聊天信息
 *
 * @author mingtao
 */
@Repository
public interface ClassroomChatMapper {
    /**
    * @description 根据主键id删除 - 批量删除
    * @param idList
    * @return int
    * @author mingtao
    **/
    int deleteByPrimaryKey(List<Integer> idList);

    /**
    * @description 添加
    * @param classroomChat
    * @return int
    * @author mingtao
    **/
    int insertSelective(ClassroomChat classroomChat);

    /**
    * @description 根据主键id查询
    * @param id
    * @return ClassroomChat
    * @author mingtao
    **/
    ClassroomChat selectByPrimaryKey(Integer id);

    /**
    * @description 根据主键id修改
    * @param classroomChat
    * @return int
    * @author mingtao
    **/
    int updateByPrimaryKeySelective(ClassroomChat classroomChat);

}